import request from '@/utils/request'

// api地址
const api = {
  getBookCheckInRecordById: 'app-api/bookCheckInRecord/getBookCheckInRecordById',
  checkInValidation: 'app-api/bookCheckInRecord/checkInValidation',
  getCheckInCalendarData: 'app-api/bookCheckInRecord/getCheckInCalendarData',
  allUsersRecentCheckInRecords: 'app-api/bookCheckInRecord/allUsersRecentCheckInRecords',
}

// 确定核销
export function doConfirm(code, amount, remark) {
  return request.post(api.doConfirm,  { code, amount, remark })
}


export function getBookCheckInRecordById(){
	return request.get(api.getBookCheckInRecordById)
}

export function checkInValidation(){
	return request.get(api.checkInValidation)
}

export function getCheckInCalendarData(){
	return request.get(api.getCheckInCalendarData)
}

export function allUsersRecentCheckInRecords(currentTab){
	return request.get(api.allUsersRecentCheckInRecords,{currentTab})
}